package com.atguigu.gulimall.coupon.controller;

import com.atguigu.gulimall.coupon.service.CouponListService;
import om.atguigu.gulimall.common.utils.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("coupon")
public class CouponController {
    @Resource
    private CouponListService couponListService;

    @RequestMapping("/list")
    public R list(){
        R r = couponListService.memberListTest();

        return R.ok().put("page", r);
    }
    @RequestMapping("/listtest")
    public R listtest(){


        return R.ok().put("page", "豆腐干多少分公司答复ß");
    }
}
